<!DOCTYPE html>


  <html class="dark page-post">


<head><meta name="generator" content="Hexo 3.9.0">
  <meta charset="utf-8">
  
  <title>webstorm常用快捷键 | Poetry&#39;s Blog</title>

  <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1">

  
    <meta name="keywords" content="webstorm,">
  

  <meta name="description" content="webstorm常用快捷键 查找/代替">
<meta name="keywords" content="webstorm">
<meta property="og:type" content="article">
<meta property="og:title" content="webstorm常用快捷键">
<meta property="og:url" content="http://blog.poetries.top/2016/04/10/webstorm使用总结/index.html">
<meta property="og:site_name" content="Poetry&#39;s Blog">
<meta property="og:description" content="webstorm常用快捷键 查找/代替">
<meta property="og:locale" content="zh-Hans">
<meta property="og:updated_time" content="2020-08-15T04:25:31.942Z">
<meta name="twitter:card" content="summary">
<meta name="twitter:title" content="webstorm常用快捷键">
<meta name="twitter:description" content="webstorm常用快捷键 查找/代替">

  

  
    <link rel="icon" href="/favicon.ico">
  

  <link href="/css/styles.css?v=c114cbeddx" rel="stylesheet">
<link href="/css/other.css?v=c114cbeddx" rel="stylesheet">


  
    <link rel="stylesheet" href="/css/personal-style.css">
  

  

  
  <script type="text/javascript">
    var _hmt = _hmt || [];
    (function() {
      var hm = document.createElement("script");
      hm.src = "//hm.baidu.com/hm.js?40b1f89aa80f2527b3db779c6898c879";
      var s = document.getElementsByTagName("script")[0];
      s.parentNode.insertBefore(hm, s);
    })();
  </script>


  
  <script type="text/javascript">
	(function(){
	    var bp = document.createElement('script');
	    var curProtocol = window.location.protocol.split(':')[0];
	    if (curProtocol === 'https') {
	        bp.src = 'https://zz.bdstatic.com/linksubmit/push.js';        
	    }
	    else {
	        bp.src = 'http://push.zhanzhang.baidu.com/push.js';
	    }
	    var s = document.getElementsByTagName("script")[0];
	    s.parentNode.insertBefore(bp, s);
	})();
  </script>



  
    <script async src="https://busuanzi.ibruce.info/busuanzi/2.3/busuanzi.pure.mini.js"></script>
    <link rel="stylesheet" href="//cdn.bootcss.com/font-awesome/4.3.0/css/font-awesome.min.css">
  

  <!-- 聊天系统 -->
  
    
   <link type="text/css" rel="stylesheet" href="/renxi/default.css">
   <style>
      #modal {
        position: static !important;
      }
      .filter {
        width: 100%;
        height: 100%;
        position: absolute;
        top: 0;
        left: 0;
        background: #fe5757;
        animation: colorChange 30s ease-in-out infinite;
        animation-fill-mode: both;
        mix-blend-mode: overlay;
      }
  
      @keyframes colorChange {
        0%, 100% {
            opacity: 0;
        }
        50% {
            opacity: .9;
        }
      }
   </style>
</head>
</html>
<body>
  
  
    <span id="toolbox-mobile" class="toolbox-mobile">导航</span>
  

  <div class="post-header CENTER">
   
  <div class="toolbox">
    <a class="toolbox-entry" href="/">
      <span class="toolbox-entry-text">导航</span>
      <i class="icon-angle-down"></i>
      <i class="icon-home"></i>
    </a>
    <ul class="list-toolbox">
      
        <li class="item-toolbox">
          <a
            class="CIRCLE"
            href="/archives/"
            rel="noopener noreferrer"
            target="_self"
            >
            博客
          </a>
        </li>
      
        <li class="item-toolbox">
          <a
            class="CIRCLE"
            href="/categories/"
            rel="noopener noreferrer"
            target="_self"
            >
            分类
          </a>
        </li>
      
        <li class="item-toolbox">
          <a
            class="CIRCLE"
            href="/tags/"
            rel="noopener noreferrer"
            target="_self"
            >
            标签
          </a>
        </li>
      
        <li class="item-toolbox">
          <a
            class="CIRCLE"
            href="/search/"
            rel="noopener noreferrer"
            target="_self"
            >
            搜索
          </a>
        </li>
      
        <li class="item-toolbox">
          <a
            class="CIRCLE"
            href="/link/"
            rel="noopener noreferrer"
            target="_self"
            >
            友链
          </a>
        </li>
      
        <li class="item-toolbox">
          <a
            class="CIRCLE"
            href="/about/"
            rel="noopener noreferrer"
            target="_self"
            >
            关于
          </a>
        </li>
      
    </ul>
  </div>


</div>


  <div id="toc" class="toc-article">
    <strong class="toc-title">文章目录<i class="iconfont toc-title" style="display:inline-block;color:#87998d;width:20px;height:20px;">&#xf004b;</i></strong>
    <ol class="toc"><li class="toc-item toc-level-3"><a class="toc-link" href="#查找-代替"><span class="toc-text">查找/代替</span></a></li><li class="toc-item toc-level-3"><a class="toc-link" href="#界面操作"><span class="toc-text">界面操作</span></a></li><li class="toc-item toc-level-3"><a class="toc-link" href="#代码编辑"><span class="toc-text">代码编辑</span></a></li><li class="toc-item toc-level-3"><a class="toc-link" href="#建议配置版本控制快捷键"><span class="toc-text">建议配置版本控制快捷键</span></a></li><li class="toc-item toc-level-3"><a class="toc-link" href="#常用"><span class="toc-text">常用</span></a></li></ol>
  </div>
  




<div class="content content-post CENTER">
   <!-- canvas 彩带 -->
<canvas id="evanyou" width="1302" height="678" style="position: fixed;width: 100%;height: 100%;top: 0;left:0;z-index:-1;"></canvas>

<article id="post-webstorm使用总结" class="article article-type-post" itemprop="blogPost">
  <header class="article-header" style="position:relative;">
    <h1 class="post-title">webstorm常用快捷键</h1>

    <div class="article-meta">
      <span>
        <i class="icon-calendar"></i>
        <span>2016.04.10</span>
      </span>

      
        <span class="article-author">
          <i class="icon-user"></i>
          <span>Poetry</span>
        </span>
      

      
  <span class="article-category">
    <i class="icon-list"></i>
    <a class="article-category-link" href="/categories/工欲善其事必先利其器/">工欲善其事必先利其器</a>
  </span>



      

      
      <i class="fa fa-eye"></i> 
        <span id="busuanzi_container_page_pv">
           &nbsp热度 <span id="busuanzi_value_page_pv">
           <i class="fa fa-spinner fa-spin"></i></span>℃
        </span>
      
      
       
          <span class="post-count">
            <i class="fa fa-file-word-o"></i>&nbsp
            <span>字数统计 700字</span>
          </span>

          <span class="post-count">
            <i class="fa fa-columns"></i>&nbsp
            <span>阅读时长 2分</span>
          </span>
      
      
    </div>

    <i class="iconfont" id="toc-eye" style="display:inline-block;color:#b36619;position:absolute;top:0;right:0;cursor:pointer;
    font-size: 24px;">&#xe61c;</i>

  </header>

  <div class="article-content">
    
      <div id="container">
        <p><strong>webstorm常用快捷键</strong></p>
<h3 id="查找-代替"><a href="#查找-代替" class="headerlink" title="查找/代替"></a><strong>查找/代替</strong></h3><a id="more"></a>
<ul>
<li><code>ctrl+shift+N</code>    通过文件名快速查找工程内的文件（必记）</li>
<li><code>ctrl+shift+alt+N</code>    通过一个字符快速查找位置（必记）</li>
<li><code>ctrl+F</code>    在文件内快速查找代码</li>
<li><code>F3</code>    查找下一个</li>
<li><code>shift+F3</code>    查找上一个</li>
<li><code>ctrl+R</code>    文件内代码替换</li>
<li><code>ctrl+shift+R</code>    指定目录内代码批量替换</li>
<li><code>ctrl+shift+F</code>    指定目录内代码批量查找</li>
<li><code>ctrl+R</code>    文件内代码替换</li>
</ul>
<hr>
<h3 id="界面操作"><a href="#界面操作" class="headerlink" title="界面操作"></a><strong>界面操作</strong></h3><ul>
<li><code>ctrl+shift+A</code>    快速查找并使用编辑器所有功能（必记）</li>
<li><code>alt+[0-9]</code>    快速拆合功能界面模块</li>
<li><code>ctrl+shift+F12</code>    最大区域显示代码（会隐藏其他的功能界面模块）</li>
<li><code>alt+shift+F</code>    将当前文件加入收藏夹</li>
<li><code>ctrl+alt+s</code>    打开配置窗口</li>
<li><code>ctrl+tab</code>    切换代码选项卡（还要进行此选择，效率差些）</li>
<li><code>ctrl+F4</code>    关闭当前代码选项卡</li>
</ul>
<h3 id="代码编辑"><a href="#代码编辑" class="headerlink" title="代码编辑"></a><strong>代码编辑</strong></h3><ul>
<li><code>ctrl+D</code>    复制当前行</li>
<li><code>ctrl+W</code>    选中单词</li>
<li><code>alt+Insert</code>    新建一个文件或其他</li>
<li><code>ctrl+alt+L</code>    格式化代码</li>
<li><code>shift+tab</code>    减少（可以在代码中减少行缩进）</li>
<li><code>tab</code> 扩大缩进</li>
<li><code>ctrl+Y</code>    删除一行</li>
<li><p><code>shift+enter</code>    重新开始一行（无论光标在哪个位置）</p>
</li>
<li><p><code>esc</code>    进入代码编辑区域</p>
</li>
<li><code>alt+F1</code>    查找代码在其他界面模块的位置，颇为有用</li>
<li><code>ctrl+G</code>    到指定行的代码</li>
<li><code>ctrl+]/[</code>    光标到代码块的前面或后面</li>
<li><code>alt+up/down</code>    上一个/下一个方法</li>
</ul>
<h3 id="建议配置版本控制快捷键"><a href="#建议配置版本控制快捷键" class="headerlink" title="建议配置版本控制快捷键"></a><strong>建议配置版本控制快捷键</strong></h3><ul>
<li>ctrl+C    提交代码</li>
<li>ctrl+p    向远程版本库推送更新</li>
<li>ctrl+G    到指定行的代码</li>
</ul>
<h3 id="常用"><a href="#常用" class="headerlink" title="常用"></a><strong>常用</strong></h3><ul>
<li><code>ctrl + shift + n:</code> 打开工程中的文件</li>
<li><code>ctrl + j:</code> 输出模板</li>
<li><code>ctrl + b</code>: 跳到变量申明处</li>
<li><code>ctrl + alt + T:</code> 围绕包裹代码(包括zencoding的Wrap with Abbreviation), - </li>
<li><code>ctrl + []:</code> 匹配 {}[]</li>
<li><code>ctrl + F12:</code> 可以显示当前文件的结构，快速跳转到目标函数</li>
<li><code>alt + left/right</code>:标签切换</li>
<li><code>ctrl + r:</code> 替换 <code>ctrl + shift + r:</code> 全局替换</li>
<li>ctrl + d: 行复制</li>
<li><code>ctrl + shift + ]/[:</code> 选中块代码<table>….</table></li>
<li><code>ctrl + / :</code> 单行注释</li>
<li><code>ctrl + shift + / :</code> 块注释</li>
<li><code>ctrl + shift + i :</code> 显示当前class,function的详细信息</li>
<li><code>ctrl + p:</code> 显示默认参数</li>
<li><code>ctrl + shift + v:</code> 可以复制多个文本</li>
<li><code>shift + enter:</code> 智能跳到下一行 ctrl + alt + enter: 在上一行添加空白行vb</li>
<li><code>ctrl + k:</code> svn 提交</li>
<li><code>ctrl + shift + u:</code> 大小写</li>
<li><code>ctrl + ~ :</code> 切换主题</li>
<li><code>ctrl + F11:</code> 添加标签 ctrl + shift + 大键盘数字键, F11:添加空标签, shift+F11:显示标签列表，方便快捷跳转</li>
<li><code>ctrl + alt + F12:</code> file path</li>
<li><code>ctrl + alt + a:</code> search keymap</li>
<li><code>shift + F6:</code> 重构标签名</li>
<li><code>Ctrl+delete</code> 删除光标后面的单词</li>
<li><code>Ctrl+BackSpace</code> 删除光标前面的单词</li>
<li><code>Ctrl+小键盘+/-</code> 折叠/展开代码</li>
<li><code>Ctrl + Alt + V</code> 快速引进一个变量</li>
<li><code>Ctrl+Alt + I</code> 自动对齐格式</li>
<li><code>alt+j:</code> 多选单个单词</li>
</ul>

      </div>
    
  </div>

</article>

<button class="assist-btn2 circle" id="assist_btn2" title="点亮屏幕" style="left: 27px; top: 152px;">
  <i class="iconfont" style="display:inline-block;color:red;width:20px;height:20px;">&#xe61d;</i>
</button>
<button class="assist-btn1 circle" id="assist_btn1" title="关闭屏幕亮度" style="left: 27px; top: 152px;">
  <i class="iconfont toc-title" style="display:inline-block;color:red;width:20px;height:20px;">&#xe61d;</i>
</button>


<script src="//cdn.bootcss.com/jquery/3.1.1/jquery.min.js"></script>	

<script src="https://my.openwrite.cn/js/readmore.js" type="text/javascript"></script>
<script>
  const btw = new BTWPlugin();
  btw.init({
    id: "container",
    blogId: "22699-1592137983091-414",
    name: "前端进阶之旅",
    qrcode: "https://poetries1.gitee.io/img-repo/2020/06/qrcode.jpg",
    keyword: "3a3b3c",
  });
</script>

<script type="text/javascript">

// white theme
var body = {color: "#555", background: "#000"};
var a_tag = {color: "#222"};
var header = { background: "#222"};
var logo_line_i = {background: "#222"};
// var post_code = {background: "#eee", color: "#222"};

function switch_theme() {
 $("body").css(body);
 $("a:not('.links-of-author-item a, .site-state-item a, .site-state-posts a, .feed-link a, .motion-element a, .post-tags a, .show-commit-cls a, #donate_board a')").css(a_tag);
 $(".header, .footer").css(header);
 $(".logo-line-before i, .logo-line-after i").css(logo_line_i);
 //$(".post code").css(post_code);
 $("#idhyt-surprise-ball #idhyt-surprise-ball-animation .drag").css(a_tag);
 $(".post-title-link, .posts-expand .post-meta, .post-comments-count, .disqus-comment-count, .post-category a, .post-nav-next a, .post-nav-item a").css(a_tag);
 
 // $("code").css({color: '#c5c8c6', background: '#1d1f21'});
 //$("#assist_btn1").hide(1500);
}

$(function () {
$("#assist_btn2").css("display","none");
 $("#assist_btn1").click(function() {
     switch_theme();
$("div#toc.toc-article").css({
 "background":"#eaeaea",
 "opacity":1
});
$(".toc-article ol").show();
$("#toc.toc-article .toc-title").css("color","#a98602");
$("#assist_btn1").css("display","none");
$("#assist_btn2").css("display","block");
 });
$("#assist_btn2").click(function() {
$("#assist_btn2").css("display","none");
$("#assist_btn1").css("display","block");
$("body").css("background","url(http://www.miaov.com/static/ie/images/news/bg.png)")
     $(".header, .footer").css("background","url(http://www.miaov.com/static/ie/images/news/bg.png)")
$(".toc-article ol").toggle(1000);
 });
});


//背景随机

var Y, O, E, L, B, C, T, z, N, S, A, I;
!function() {
var e = function() {
for (O.clearRect(0, 0, L, B), T = [{
x: 0,
y: .7 * B + C
}, {
x: 0,
y: .7 * B - C
}]; T[1].x < L + C;) t(T[0], T[1])
}, t = function(e, t) {
O.beginPath(), O.moveTo(e.x, e.y), O.lineTo(t.x, t.y);
var n = t.x + (2 * I() - .25) * C,
 r = a(t.y);
O.lineTo(n, r), O.closePath(), N -= S / -50, O.fillStyle = "#" + (127 * A(N) + 128 << 16 | 127 * A(N + S / 3) + 128 << 8 | 127 * A(N + S / 3 * 2) + 128).toString(16), O.fill(), T[0] = T[1], T[1] = {
 x: n,
 y: r
}
}, a = function n(e) {
var t = e + (2 * I() - 1.1) * C;
return t > B || t < 0 ? n(e) : t
};
Y = document.getElementById("evanyou"), O = Y.getContext("2d"), E = window.devicePixelRatio || 1, L = window.innerWidth, B = window.innerHeight, C = 90, z = Math, N = 0, S = 2 * z.PI, A = z.cos, I = z.random, Y.width = L * E, Y.height = B * E, O.scale(E, E), O.globalAlpha = .6, document.onclick = e, document.ontouchstart = e, e()
}()

   
$("#toc-eye").click(function(){
$("#toc.toc-article").toggle(1000);
});

</script>


   
  <div class="text-center donation">
    <div class="inner-donation">
      <span class="btn-donation">支持一下</span>
      <div class="donation-body">
        <div class="tip text-center">扫一扫，支持poetries</div>
        <ul>
        
          <li class="item">
            
              <span>微信扫一扫</span>
            
            <img src="/images/weixin.jpg" alt="">
          </li>
        
          <li class="item">
            
              <span>支付宝扫一扫</span>
            
            <img src="/images/zhifubao.jpg" alt="">
          </li>
        
        </ul>
      </div>
    </div>
  </div>


   
  <div class="box-prev-next clearfix">
    <a class="show pull-left" href="/2016/03/25/Vim快捷键分类/">
        <i class="icon icon-angle-left"></i>
    </a>
    <a class="show pull-right" href="/2016/04/17/73条日常Linux-shell命令汇总/">
        <i class="icon icon-angle-right"></i>
    </a>
  </div>




</div>


  <a id="backTop" class="back-top">
    <i class="icon-angle-up"></i>
  </a>




  <div class="modal" id="modal">
  <span id="cover" class="cover hide"></span>
  <div id="modal-dialog" class="modal-dialog hide-dialog">
    <div class="modal-header">
      <span id="close" class="btn-close">关闭</span>
    </div>
    <hr>
    <div class="modal-body">
      <ul class="list-toolbox">
        
          <li class="item-toolbox">
            <a
              class="CIRCLE"
              href="/archives/"
              rel="noopener noreferrer"
              target="_self"
              >
              博客
            </a>
          </li>
        
          <li class="item-toolbox">
            <a
              class="CIRCLE"
              href="/categories/"
              rel="noopener noreferrer"
              target="_self"
              >
              分类
            </a>
          </li>
        
          <li class="item-toolbox">
            <a
              class="CIRCLE"
              href="/tags/"
              rel="noopener noreferrer"
              target="_self"
              >
              标签
            </a>
          </li>
        
          <li class="item-toolbox">
            <a
              class="CIRCLE"
              href="/search/"
              rel="noopener noreferrer"
              target="_self"
              >
              搜索
            </a>
          </li>
        
          <li class="item-toolbox">
            <a
              class="CIRCLE"
              href="/link/"
              rel="noopener noreferrer"
              target="_self"
              >
              友链
            </a>
          </li>
        
          <li class="item-toolbox">
            <a
              class="CIRCLE"
              href="/about/"
              rel="noopener noreferrer"
              target="_self"
              >
              关于
            </a>
          </li>
        
      </ul>

    </div>
  </div>
</div>



  
      <div class="fexo-comments comments-post">
    

    

    
    

    

    
    

    

<!-- Gitalk评论插件通用代码 -->
<div id="gitalk-container"></div>

<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/gitalk@1/dist/gitalk.css">
<script src="https://cdn.jsdelivr.net/npm/gitalk@1/dist/gitalk.min.js"></script>
<script>
const gitalk = new Gitalk({
  clientID: '5567a2c4abb858009d96',
  clientSecret: 'b9039ec056cf5c2346b3cdb63308a28c163f91e5',
  repo: 'poetries.github.io',
  owner: 'poetries',
  // 在这里设置一下截取前50个字符串, 这是因为 github 对 label 的长度有了要求, 如果超过
  // 50个字符串则会报错.
  // id: location.pathname.split('/').pop().substring(0, 49),
  id: location.pathname,
  admin: ['poetries'],
  // facebook-like distraction free mode
  distractionFreeMode: false
})
gitalk.render('gitalk-container')
</script>
<!-- Gitalk代码结束 -->



  </div>

  

  <script type="text/javascript">
  function loadScript(url, callback) {
    var script = document.createElement('script')
    script.type = 'text/javascript';

    if (script.readyState) { //IE
      script.onreadystatechange = function() {
        if (script.readyState == 'loaded' ||
          script.readyState == 'complete') {
          script.onreadystatechange = null;
          callback();
        }
      };
    } else { //Others
      script.onload = function() {
        callback();
      };
    }

    script.src = url;
    document.getElementsByTagName('head')[0].appendChild(script);
  }

  window.onload = function() {
    loadScript('/js/bundle.js?235683', function() {
      // load success
    });
  }
</script>


  <!-- 页面点击小红心 -->
  <script type="text/javascript" src="/js/clicklove.js"></script>
 
  
</body>
</html>
